<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../../js/vue.js"></script>
</head>

<body>
  <!-- 创建一个容器 -->
  <div id="demo">
    <h2>{{school}}</h2>
    <!-- 插值语法和v-bing是单项绑定 -->
    <!-- 单项数据绑定 -->
    <input type="text" v-bind:value="school"> <br>
    <!-- 双向数据绑定 -->
    <!-- v-model只能在输入框中 -->
    <input type="text" v-model:value="school"><br>
    <hr>
  </div>
  <div id="demo1">
    <h2>{{message}}</h2>
    <!-- 简写 -->
    <input type="text" :value='message'><br>
    <input type="text" v-model='message'>
    <select name="" id="">
      <option value="1">我是你得</option>
    </select>
  </div>
  <!-- 创建Vue实例  -->
  <script>
    var vm = new Vue({
      el: '#demo',
      data: {
        school: '北京邮电大学'
      }
    })
    var vm1 = new Vue({
      el: '#demo1',
      data: {
        message: '中央戏剧学院'
      }
    })
  </script>
</body>

</html>